package com.neuedu.controller.physician;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.neuedu.bean.Disease;
import com.neuedu.service.physician.PhysicianDiseaseService;

/**
 * 医生看诊：疾病管理
 */
@RestController
public class PhysicianDiseaseController {
//	@Autowired
	private PhysicianDiseaseService physicianDiseaseService;

	@PostMapping("getDisease")
	public List<Disease> getDisease(String diseaseName, String diseaseCode, String diseaseICD) {
		Disease con = new Disease();
		con.setDiseaseCode(diseaseCode);
		con.setDiseaseName(diseaseName);
		con.setDiseaseICD(diseaseICD);
		return physicianDiseaseService.getDisease(con);
	}
}
